import java.util.regex.Matcher;
import java.util.regex.Pattern;


public class TestEL {
	public static void main(String[] args) {
		///[\\(][\\S]+[\\)]
//		Pattern pattern = Pattern.compile("/\\$?\\{?\\w*\\z*\\}|/[\\(][\\S]+[\\)]");
//		Matcher m = pattern.matcher("(${22225}+${22224})/(${17621}+${17651})*100*@znl");
//		if(m.find())
//			System.out.println(m.group(0));
		
		
//		System.out.println(findDivisor("(${22225}+${22224})/${17621}+${17651}*100*@znl"));
		
		String str = "${C52}/${C51}*100";
		System.out.println(str.replaceAll("\\$\\{C52\\}", null));
	}
	
	private static String findDivisor(String express){
		Pattern pattern = Pattern.compile("/\\$?\\{?\\w*\\z*\\}|/[\\(][\\S]+[\\)]");
		Matcher m = pattern.matcher(express);
		if(m.find()){
			String str = m.group();
			return str.substring(1);
		}
		return null;
	}
}
